<template>
    <div class="rightBottom_container">
        <div class="rightBottom_top">浮选浓度总表</div>
        <div class="rightBottom_bottom">
            <div class="rightBottom_bottom_item" v-for="(item,index) in flowData" :key="index">
                <div class="item_txt">{{ item.txt }}</div>
                <div class="item_val">{{ item.val }}</div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    props: {
    real: {
      type: Object,
    },
  },
  computed:{
      flowData(){
            var flowArr=[]
                for(var key in this.real){
                    if(key.indexOf("ND_") != -1){
                        flowArr.push({
                            txt:key.slice(3) + "#",
                            val:this.real[key].toFixed(2)
                        })
                    }
                }
            console.log(flowArr,66)
            return flowArr
        }
  }
}
</script>
<style lang="scss" scoped>
.rightBottom_container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding:0.2rem 0.5rem;
    border: 1px solid #00def8;
    border-radius: 10px;
    box-sizing: border-box;
    color: #fff;
}
.rightBottom_top{
    width:100%;
    height: 7%;
    text-align: center;
    font-size: 0.2rem;
   font-weight: bold;
}
.rightBottom_bottom{
    width: 100%;
    height: 88%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.rightBottom_bottom_item{
    width: 40%;
    display: flex;
    justify-content: space-between;
}
</style>